package images;
import java.util.Hashtable;

import javax.swing.ImageIcon;
public class GetImage {
	static Hashtable<String,ImageIcon> img=new Hashtable<String,ImageIcon>();
	public ImageIcon getIcon(String str){
		if(img.containsKey(str))return img.get(str);
		else{
			ImageIcon ii=new ImageIcon(getClass().getResource(str));
			img.put(str, ii);
			return ii;
		}
	}
}
